package com.scenic.common.service;

import com.scenic.common.exception.ScenicSpotException;
import com.scenic.common.bean.Addr;

import java.util.List;

public interface AddrService {
    //添加
    Integer insert(Addr addr);
    //根据id删除
    boolean delete(Integer id, Integer userId) throws ScenicSpotException;
    //修改
    boolean update(Addr addr,  Integer userId) throws ScenicSpotException;
    //根据条件查询
    List<Addr> selectByCondition(Addr condition);
    //根据id查询
    Addr selectById(Integer id);
}
